package com.mapper;

import com.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UserMapper {

    //    注册
    int insertUser(@Param("user") User user);

    //    登录
    User loginUser(@Param("user") User user);

    //    查询用户
    User searchUser(@Param("user") User user);
    /*添加头像*/
    int insertAvatar(@Param("user") User user);
/*设置昵称*/
    int updateNickname(@Param(("user")) User user);
    /*修改密码*/
    int updatePwd(@Param(("user")) User user);
}
